/*
 * GraphData.java
 *
 * Created on July 24, 2006, 9:07 AM
 *
 * @author Francois Daniels
 */

package za.gateway.container;

/**
 * This class will contain data regarding a graph structure. This class
 * merely stores a set which is a representation of points on a 
 * cartesian plane.
 *
 * @author Francois Daniels
 */
public class GraphData {
    /** Variables belonging to the GraphData class */
    
    /** 
     * This array will contain the data regarding the domain of this 
     * graph 
     */
    protected int [] Domain;
    
    /** 
     * This array will contain the data regarding the range of this 
     * graph 
     */
    protected int [] Range;    
    
    /** Functions belonging to the GraphData class */
    
    /** 
     * Create a new object of type GraphData. It stores the domain and 
     * range data.
     *
     * @param DomainData        The domain data which is to be stored 
     * @param RangeData         The range data which is to be stored 
     */
    public GraphData (int [] DomainData, int [] RangeData) {
        Domain  = DomainData;
        Range   = RangeData;
    }
    
    /**
     * Returns the data stored regarding the domain of the graph.
     *
     * @return The data stored regarding the domain.
     */
    public int [] GetDomainData () {
        return Domain;
    }
    
    /**
     * Returns the data stored regarding the range of the graph.
     *
     * @return The data stored regarding the range.
     */
    public int [] GetRangeData () {
        return Range;
    } 
}
